<script setup>
import GlobalHeader from '@/components/GlobalHeader.vue'
import GlobalFooter from '@/components/GlobalFooter.vue'
</script>

<template>
  <div class="container">
    <a-layout class="layout">
      <!-- 头部 -->
      <a-layout-header class="header">
        <global-header />
      </a-layout-header>
      <!-- 内容 -->
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <!-- 底部 -->
      <a-layout-footer class="footer">
        <global-footer />
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<style scoped>
.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.content {
  flex: 1;
  padding: 24px;
}
.footer {
  padding: 0;
}
</style>
